.container {
    background-color: #F2F2F2;
    position: relative;
    font-size: 24rpx;
    box-sizing: border-box;
    height: 100vh;
    padding-top: 270rpx;
    padding-left: 20rpx;
    padding-right: 20rpx;
    // padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
    overflow: hidden;
}

.status_bar {
    position: fixed;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1;
    display: flex;
    justify-content: space-around;
    border-bottom: 2rpx solid #f0f0f0;
    /* 提升渲染性能 */

    :global(.nut-tabs-titles-item) {
        padding: 8rpx 2rpx;
    }
}

.goodsList {
    position: relative;
    // height: calc(100vh - 270rpx - env(safe-area-inset-bottom));
    // background-color: #cccccc;
}

.order_item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20rpx;

    .header {
        display: flex;
        justify-content: space-between;
        padding-bottom: 12px;
        border-bottom: 1px solid #f5bd89;
        margin-bottom: 12px;

        .order_no {
            font-size: 14px;
            color: #666;
        }

        .status {
            font-size: 14px;
            color: #ff4d4f;
        }

        .pay_btn {
            position: absolute;
            top: 20rpx;
            right: 40rpx;
        }



    }

    .goods_item {
        position: relative;
        display: flex;
        margin-bottom: 12px;

        .cover {
            width: 160rpx;
            height: 160rpx;
            border-radius: 4rpx;
            margin-right: 80rpx;
        }

        .preImg {
            position: absolute;
            top: 0rpx;
            left: 160rpx;
            width: 40rpx;
            height: 40rpx;
            border-radius: 50%;
        }

        .info {
            flex: 1;

            .name {
                font-size: 14px;
                color: #333;
                margin: 10rpx 0rpx;
                .ellipsis();
            }

            .goodsCode,
            .goodsColor,
            .goodsSize {
                margin: 4rpx 0rpx;
                font-size: 12px;
                color: #888;
                text-align: left;
            }

            .spec {
                font-size: 12px;
                color: #999;
                margin: 10rpx 0rpx;

                .number {
                    float: right;
                }
            }

            .price {
                font-size: 14px;
                color: #ff4d4f;
                margin: 10rpx 0rpx;
            }
        }
    }

    .footer {
        display: flex;
        position: relative;
        padding-top: 8px;
        border-top: 1px solid #f5bd89;

        .cancel_btn {
            position: absolute;
            top: 10rpx;
            left: 0rpx;
        }

        .delete_btn {
            position: absolute;
            top: 25rpx;
            left: 10px;
            color: #ff4d4f;
            font-size: 24rpx;
        }

        //确认收货
        .ensure_btn {
            position: relative;
            // position: absolute;
            // top: 14rpx;
            // left: 0rpx;
        }

        .offline {
            position: absolute;
            left: 0rpx;
        }

        .total {
            flex: 1;
            text-align: right;
            margin-right: 16px;
            font-size: 12px;
            margin-top: 12rpx;

            .amount {
                color: #ff4d4f;
            }
        }
    }
}

.ellipsis() {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}